package utils

import (
	"editor/constant"
	"github.com/gin-gonic/gin"
	"net/http/httptest"
	"time"
)

func CreateTestCtx() *gin.Context {
	ctx, _ := gin.CreateTestContext(httptest.NewRecorder())
	ctx.Set(constant.RequestTime, time.Now().UnixMicro())
	return ctx
}
